# -*- coding: utf-8 -*-
# @Time    : 2025/10/5
# @Author  : 楚江涛
# @FileName: enums.py
# @Software: PyCharm

from enum import Enum

class NodeType(str, Enum):
    START = "start"
    CODE = "code"
    END = "end"

class ExecStatus(str, Enum):
    PENDING = "PENDING"
    RUNNING = "RUNNING"
    SUCCEEDED = "SUCCEEDED"
    FAILED = "FAILED"
    CANCELLED = "CANCELLED"

class EventType(str, Enum):
    EXEC_STARTED = "exec_started"
    EXEC_FINISHED = "exec_finished"
    EXEC_CANCELLING = "exec_cancelling"
    EXEC_PAUSED = "exec_paused"
    EXEC_RESUMED = "exec_resumed"
    NODE_STARTED = "node_started"
    NODE_LOG = "node_log"
    NODE_FINISHED = "node_finished"
    NODE_FAILED = "node_failed"
    NODE_CANCELLED = "node_cancelled"

